{include file="public/header" /}
<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInUp">
        <div class="row">
            <div class="col-sm-12">

                <div class="ibox">
                    <div class="ibox-title">
                        <h5>微信授权</h5>
                        <div class="ibox-tools">
                            <a href="/wx/admin/edit.html" class="btn btn-primary btn-xs">提交新的授权</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="project-list">

                            <table class="table table-hover">
                                <tbody>
                                   <tr>
                                       <td class="project-title">
                                            公司名（主体名）
                                        </td>
                                        <td>token</td>
                                        <td>encodingaeskey</td>
                                        <td>appid</td>
                                        
                                        <td class="project-completion">
                                               appsecret
                                        </td>
                                       
                                        <td class="project-people">
                                          备注
                                        </td>
                                        <td class="project-actions">
                                           状态
                                        </td>
                                        <td>操作</td>
                                    </tr>
                                    <?php foreach ($auth as $key => $v): ?>
                                        
                                    
                                    <tr>
                                       
                                       
                                        <td class="project-title">
                                            <a href="javascript:;">{$v.name}<span class="label label-primary" style="margin-left:20px;">{$v.zhStep}</span></a>
                                            <br/>
                                            <small>创建于 {:date('Y-m-d H:i:s',$v['time'])}</small>
                                        </td>
                                         <td>
                                         {$v.token}
                                         <br/>
                                            <small>验证地址: http://{$_SERVER['HTTP_HOST']}/wx/index/validatewx/accounts_id/{$v.id}.html</small>
                                        </td>
                                        <td>{$v.encodingaeskey}</td>
                                        <td>{$v.appid}</td>
                                        <td>{$v.appsecret} </td>
                                        <td class="project-completion">
                                               {$v.remark}
                                        </td>
                                        <td class="project-actions"><?php if($v['status']==1){ status(true);}else{ status(false);} ?></td>
                                        <td>
                                           <a class="btn btn-primary btn-xs" href="{:url('admin/edit',array('id'=>$v['id']))}" >修改</a>
                                           <a class="btn btn-danger btn-xs" href="" target="blank">删除</a>
                                   
                                        </td>
                                        
                                    </tr>
                                    <?php endforeach ?>
                                    
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
  {include file="public/footer" /}